package com.example.lottery_system.service.dto;

import com.example.lottery_system.service.Enum.ActivityUserStatusEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserDto {
    private Long userId;

    private String userName;

    private ActivityUserStatusEnum status;
    public Boolean valid() {
        return status.name().equalsIgnoreCase(ActivityUserStatusEnum.RUNNING.name());
    }
}
